<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@ include file="/common/taglibs.jsp" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>项目实施方案</title>
    <%@ include file="/common/util.jsp" %>


    <script type="text/javascript">
        function jumpPage(pageIndex) {
            window.location.href = "${cdnctx}/business/init.shtml?pageIndex=" + pageIndex + "&companycode=${companycode }";
        }
    </script>
</head>
<body class="main">
<div class="-frame -style -luster" id="css_container">
    <!--首页框架页眉部分↓-->
    <%@ include file="/WEB-INF/pages/inc/header.jsp" %>
    <!--首页框架页眉部分↑-->

    <div class="content">

        <!-- Left导航菜单◎开始 -->
        <%@ include file="/WEB-INF/pages/inc/leftmenu.jsp" %>
        <!-- Left导航菜单◎结束 -->

        <div class="main-mid">
            <div class="pos">
                <img src="${cdnctx}/src/index/img/index.png"><a
                    href="${cdnctx}/system/customerinfo/customerList.shtml">能源管理 </a>>
                <a>${customername}_项目实施方案</a>
                <span style="float: right;margin-right: 25px;">
                    <a href="${cdnctx}/energy/AreaEnergy.shtml?customerinfoid=${customerInfo.id}">区域管理</a> |
                    <%--<a href="${cdnctx}/economicBenefit/devicestatus.shtml?companycode=${companycode }">设备状态</a> |--%>
                    <a href="${cdnctx}/operate/operatelist.shtml?customerinfoid=${customerInfo.id }">运营维护</a></span>
            </div>
            <div class="css_contentDiv">
                <div class="divTable">
                    <div class="detailDiv" style="background-color:white;width:100%;overflow:auto;">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list_table">
                            <thead>
                            <tr>
                                <td colspan="5">传统灯具</td>
                                <td colspan="5">LED灯具</td>
                                <td rowspan="2">节能比</td>
                            </tr>
                            <tr>
                                <td>灯具名称</td>
                                <td>编码</td>
                                <td>功率(W)</td>
                                <td>数量</td>
                                <td>总功率(KW)</td>
                                <td>灯具名称</td>
                                <td>编码</td>
                                <td>功率(W)</td>
                                <td>数量</td>
                                <td>总功率(KW)</td>
                            </tr>
                            </thead>
                            <c:if test="${empty(listdata) }">
                                <tr class="even" align="center" style="color:red">
                                    <td colspan="11" class="no-data" style="height: 300px;"></td>
                                </tr>
                            </c:if>
                            <c:if test="${not empty(listdata) }">
                                <c:forEach items="${listdata}" var="entity" varStatus="status">
                                    <tr>
                                        <td>${entity.tralightname}</td>
                                        <td>${entity.tralightcode}</td>
                                        <td>${entity.trapower}</td>
                                        <td>${entity.tranum}</td>
                                        <td>${entity.tranum*entity.trapower/1000}</td>
                                        <td>${entity.ledlightname}</td>
                                        <td>${entity.ledlightcode}</td>
                                        <td>${entity.ledpower}</td>
                                        <td>${entity.lednum}</td>
                                        <td>${entity.lednum*entity.ledpower/1000}</td>
                                        <td><fmt:formatNumber
                                                value="${(1-(entity.lednum*entity.ledpower/1000)/(entity.tranum*entity.trapower/1000))*100}"
                                                pattern="0.00"/> %
                                        </td>
                                    </tr>
                                </c:forEach>
                                <%--<tr>--%>
                                    <%--<td>合计:</td>--%>
                                    <%--<td>-</td>--%>
                                    <%--<td>-</td>--%>
                                    <%--<td><fmt:formatNumber value="${trdhjp/1000}" pattern="0.00"/></td>--%>
                                    <%--<td>-</td>--%>
                                    <%--<td>-</td>--%>
                                    <%--<td>-</td>--%>
                                    <%--<td><fmt:formatNumber value="${ledhjp/1000}" pattern="0.00"/></td>--%>
                                    <%--<td><fmt:formatNumber value="${(1-ledhjp/trdhjp)*100}" pattern="0.00"/>%</td>--%>
                                <%--</tr>--%>
                            </c:if>
                        </table>
                    </div>
                    <c:if test="${not empty(listdata) }">
                        <div id="pageInfo" class="pageJump">
                            <script type="text/javascript">
                                pagination.getPaginationHtml('JavaScript:jumpPage({0})', ${pageIndex}, ${pageCount}, 'pageInfo');
                            </script>
                            <c:if test="${!empty(listdata) }">
                                共有${dataCount}条数据
                            </c:if>
                        </div>
                    </c:if>
                </div>
            </div>
        </div>

    </div>

    <!--首页框架页尾部分↓-->
    <%@ include file="/WEB-INF/pages/inc/footer.jsp" %>
    <!--首页框架页尾部分↑-->
</div>
</body>
</html>